package com.lion.ball.modules.orderfood.web.model.params.order;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 桌位 数据排序请求参数
 * Explain:
 * 所有字段取值规则：-1 降序，0 不排序，1 升序
 */
@Schema(description = "桌位 排序参数")
public class OfdTableOrderParam {
    @Schema(description = "主键", example = "1")
    private int id;
    @Schema(description = "编码", example = "1")
    private int code;
    @Schema(description = "名称", example = "1")
    private int name;
    @Schema(description = "图片", example = "1")
    private int img;
    @Schema(description = "二维码", example = "1")
    private int qrCode;
    @Schema(description = "创建时间", example = "1")
    private int createTime;
    @Schema(description = "更新时间", example = "1")
    private int updateTime;
    @Schema(description = "是否删除", example = "1")
    private int isDeleted;

    // 无参构造方法
    public OfdTableOrderParam() {
    }

    // 全参数构造方法
    public OfdTableOrderParam(int id, int code, int name, int img, int qrCode, int createTime, int updateTime, int isDeleted) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.img = img;
        this.qrCode = qrCode;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    // 全参数create生成器
    public static OfdTableOrderParam create(int id, int code, int name, int img, int qrCode, int createTime, int updateTime, int isDeleted) {
        return new OfdTableOrderParam(id, code, name, img, qrCode, createTime, updateTime, isDeleted);
    }

    // 全参数of生成器
    public static OfdTableOrderParam of(int id, int code, int name, int img, int qrCode, int createTime, int updateTime, int isDeleted) {
        return new OfdTableOrderParam(id, code, name, img, qrCode, createTime, updateTime, isDeleted);
    }
    // region Getter和Setter方法
    public int getId() {
        return id;
    }

    public OfdTableOrderParam setId(int id) {
        this.id = id;
        return this;
    }

    public int getCode() {
        return code;
    }

    public OfdTableOrderParam setCode(int code) {
        this.code = code;
        return this;
    }

    public int getName() {
        return name;
    }

    public OfdTableOrderParam setName(int name) {
        this.name = name;
        return this;
    }

    public int getImg() {
        return img;
    }

    public OfdTableOrderParam setImg(int img) {
        this.img = img;
        return this;
    }

    public int getQrCode() {
        return qrCode;
    }

    public OfdTableOrderParam setQrCode(int qrCode) {
        this.qrCode = qrCode;
        return this;
    }

    public int getCreateTime() {
        return createTime;
    }

    public OfdTableOrderParam setCreateTime(int createTime) {
        this.createTime = createTime;
        return this;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public OfdTableOrderParam setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdTableOrderParam setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    // endregion Getter和Setter方法
}
